package com.sl.au.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.ProductType;
@Transactional(readOnly = true)
public interface ProducTypeRepository extends JpaRepository<ProductType, String>{
	/**
	 * 获取所有类型
	 * 
	 * @param key
	 * @param pageable
	 * @return
	 */
	@Query("select s from ProductType s where 1=1")
	List<ProductType> getAllType();
	
}
